class NodesController < ApplicationController
	in_place_edit_for :node, :description

  def create
  	@network = Network.find(params[:network_id])
	@network.nodes.create params[:node]
	
	respond_to do |format|
		format.html { redirect_to @network }
		format.js
	end
  end

  def show
    @node = Node.find(params[:id])
	@network = Network.find(params[:network_id])
  end

  def edit
  end

  def update
  end

  def destroy
  end

end
